Added the setLevel function to NSWindow