Application.NewDocument event
From Xojo Documentation
Event
The user launched the app by double-clicking the app icon or the NewDocument method was called.
The user launched the app by double-clicking the app icon or the NewDocument method was called.