title: Create a new window with NSWindow
body: <p>I'd like to create a new window programmatically. I have the following code, and it builds, but my window doesn't show up. The only way I can make it visible is by adding it as a child window to the default 'window'. How can I make 'win' be an independent window?</p>
  
  <pre><code>@IBOutlet var window: NSWindow
  
  func applicationDidFinishLaunching(aNotification: NSNotification?) {
  
      var win = NSWindow(contentRect: NSMakeRect(100, 100, 600, 200),
                         styleMask: NSResizableWindowMask,
                         backing: NSBackingStoreType.Buffered, defer: true)
  
      window.addChildWindow(win, ordered:NSWindowOrderingMode.Above)
  }
  </code></pre>