Rewrite NSWindow category into Swift.