NSWindow
NSWindow is a class in Apple's AppKit framework that represents a top-level window in macOS applications. It provides the window frame, title bar, and window chrome, and serves as the container for an app’s content. NSWindow manages window ordering, visibility, and keyboard focus within an application.
An NSWindow is not a view, but it owns a contentView, which is an NSView that hosts
Creation and lifecycle are typically handled with initializers such as initWithContentRect:styleMask:backing:defer:, or via Interface Builder. Methods
Delegation and interaction are mediated through the NSWindowDelegate protocol, which provides callbacks such as windowWillClose:, windowDidResize:,
Related classes include NSPanel, a subclass used for utility panels. NSWindow is a core component of AppKit,