Good idea – do you find that the focus is opened in the new window, on your system ?
( Here FWIW – macOS 11.7, KM and script versions – a new window is certainly being created, but the the focus is still opened in the old one )
I guess another approach might be to create a new tab for the focus ?
A possible sketch here: