In Sierra but not Mojave, when the user opens an ancillary window, it appears for a moment, then vanishes. Is it a bug in the code, or in AppKit?
NSWindow
Has Xcode been warning you that your Interface Builder window class is unknown, and creating a generic Window instead? Here’s the simple fix.