Window.DrawInto

From Xojo Documentation

Method

Window.DrawInto(g as Graphics, x as Integer, y as Integer)

Supported for all project types and targets.

Draws the contents of the window into the specified Graphics context.