init a window on OS X