Maybe you need to set the window style to NSWindowStyleMaskFullSizeContentView.
Topic:
UI Frameworks
SubTopic:
AppKit