Create connection with an iframe element. Same-origin and cross-origin are both supported and the differences are handled internally.

The other end should connect to this window using wxWindowOwner.

This will fail if called when globalThis is not a Window.