I am implementing an authorization plugin to provide support for an additional authentication method after Password for Mojave. I created a custom window subclassing NSWindow to show my UI. This UI is displaying properly at console login. But for screensaver unlock, the window is not visible on the black screen but it is having keyboard and mouse focus. I am using authenticate-session-owner rule for screensaver and adding my mechanism to authenticate right.
I wanted help on how to bring this window to front and get it displayed on top of the screen saver.