I'm developing an application for macOS.
I've created all the interface within the main window. But now I need to open a new window to show information.
So I created a new .swift file of the NSViewController class with its .XIB.
What code should I use to open this new window in modal mode from the main window?