Function wxWindowOwner

Source
wxWindowOwner(
    ownerOrigin: string,
    options?: WxWorkerCreateOptions,
): WxBusCreator

Create connection with the owner window (i.e. the opener or embedder) that used wxPopup or wxFrame.

Since cross-origin access to Window properties is restricted, you must provide the origin of the owner window.