parent
Sets a parent to the window to be created. Can be either a {@linkcode Window} or a label of the window.
Platform-specific
Windows: This sets the passed parent as an owner window to the window to be created. From MSDN owned windows docs:
An owned window is always above its owner in the z-order.
The system automatically destroys an owned window when its owner is destroyed.
An owned window is hidden when its owner is minimized.
Linux: This makes the new window transient for parent, see https://docs.gtk.org/gtk3/method.Window.set_transient_for.html
macOS: This adds the window as a child of parent, see https://developer.apple.com/documentation/appkit/nswindow/1419152-addchildwindow?language=objc