DesktopWindow.DrawInto
From Xojo Documentation
Method
DesktopWindow.DrawInto(g as Graphics, x as Integer, y as Integer)
New in 2021r3
Supported for all project types and targets.
New in 2021r3
Supported for all project types and targets.
Draws the contents of the window into the specified Graphics context.