title: Move a NSWindow by dragging a NSView
body: <p>I have a NSWindow, on which i apply this:</p>
  
  <pre><code>window.styleMask = window.styleMask | NSFullSizeContentViewWindowMask
  window.titleVisibility = NSWindowTitleVisibility.Hidden;
  window.titlebarAppearsTransparent = true;
  </code></pre>
  
  <p>I then add a NSView behind the titlebar to simulate a bigger one.
  Now it looks like this:
  <img src="https://i.stack.imgur.com/wCbg4.jpg" alt="Current window"></p>
  
  <p>I want to be able to move the window, by dragging the light-blue view. I have already tried to subclass NSView and always returning true for mouseDownCanMoveWindow using this code:</p>
  
  <pre><code>class LSViewD: NSView {
      override var mouseDownCanMoveWindow:Bool {
          get {
              return true
          }
      }
  }
  </code></pre>
  
  <p>This didn't work.
  After some googling i found this <a href="https://github.com/indragiek/INAppStoreWindow" rel="noreferrer">INAppStoreWindow</a> on GitHub. However it doesn't support OS X versions over 10.9, so it's completely useless for me.</p>
  
  <p><em>Edit1</em></p>
  
  <p>This is how it looks in the Interface Builder.
  <img src="https://i.stack.imgur.com/gCNic.jpg" alt="Interface Builder"></p>
  
  <p>How can i move the window, by dragging on this NSView?</p>