Added NSWindow creation