There are some similar questions but they are all about how to get window when project uses scenes. But my one is slightly different.
You propose to get the active window via the different way - it is ok. But what to do with old libraries (in my case it is custom activity views) which access to the optional window property with "implicitly unwrapping":
appDelegate.window!
Is it possible to override appDelegate.window property getter to return the current window?