I have an NSView inside my MainWindow (imagine for example a PDFViewer component). With a button click I want it becomes a View of another new NSWindow. (imagine that I want a new floating window with this pdf preview)
How can I approach this problem? I have no idea on where to start