I currently have:
let window = NSWindow(contentRect: NSRect(x: 300, y: 300, width: 200, height: 200), styleMask: [.borderless], backing: .buffered, defer: true)
window.backgroundColor = NSColor.green
window.level = .floating
window.collectionBehavior = [.stationary, .canJoinAllSpaces, .fullScreenAuxiliary]
window.makeKeyAndOrderFront(nil)
Current behaviour: When space changes (moving between full screen windows) the window moves relative to the desktop/space .
Expected behaviour: I want the window to behave much like the notifications window in macOS, where the window "floats" above the screen even when active space changes.