ContainerControl.Window

From Xojo Documentation

Property (As Window )
aContainerControl.Window = newWindowValue
or
WindowValue = aContainerControl.Window

Supported for all project types and targets.

Gets the containing window.

Multiple levels of embedding are permitted, so this window may not be the highest level window.