Your comments

The easiest solution would be to allow “open in new window” to actually open the same file in a new window (instead of showing the file from another tab or an empty tab if no exist).