GtkOffscreenWindow doesn't have a NSView or NSWindow, so return NULL if passed one of those. Closes: #379