set parentWindow for AppKit too