Please don’t ever do this. It’s a UX dark pattern. You should put that control in the user’s hands, not force it on them.
There are a small number of very specific cases where a new window/tab makes sense—basically just when they would lose work if opening in the same tab. twitter.com/denicmarko/status/13…