Window.MaximumWidth

From Xojo Documentation

Property (As Integer )
aWindow.MaximumWidth = newIntegerValue
or
IntegerValue = aWindow.MaximumWidth

New in 2019r2

Supported for all project types and targets.

The maximum width (in points) to which the window can be resized.