requestWindowAsync
fun requestWindowAsync(options: DocumentPictureInPictureOptions = definedExternally): Promise<Window>(source)
The requestWindow() method of the DocumentPictureInPicture interface opens the Picture-in-Picture window for the current main browsing context. It returns a Promise that fulfills with a Window instance representing the browsing context inside the Picture-in-Picture window.