DesktopWindow.Title

From Xojo Documentation

Property (As String )
aDesktopWindow.Title = newStringValue
or
StringValue = aDesktopWindow.Title

New in 2021r3

Supported for all project types and targets.

The text in the window’s Title bar.