From Xojo Documentation
| This item was deprecated in version 2019r2.
Please use Window.HasCloseButton as a replacement.
If True, the window will include a Close button in its Title Bar.
Since this is the name of a property, you cannot use “CloseButton” as the name of a button or any other type of object.
MacOS does not display close buttons on Movable Modal windows.