Before launching the window, just use the appropriate window level, and you’re done.
For example,
window.level = NSWindow.Level.popUpMenu
Or, if you want a higher level:
window.level = NSWindow.Level.screenSaver
You can see all the window levels on Apple Documentation page.