I'm making a cross platform application that's written in C++. I am looking to basically create a Window on a macos app from scratch in the main method. What I mean by this is if I create a new Cocoa Storyboard Obj-C app, it gives me main.m. In main.m, it calls NSApplicationMain, which in turn does something that starts up a window.
My question is how do I emulate what NSApplicationMain does but starting a different window?