DesktopWindow.Minimize

From Xojo Documentation

Method

DesktopWindow.Minimize()

New in 2021r3

Supported for all project types and targets.

Minimizes the window and calls the Minimize event handler.