The Picture-in-Picture API allow websites to create a floating video window always on top of other windows so that users may continue consuming media while they interact with other content sites, or applications on their device. Here an asynchronous function will call the navigator web API and request a screen (await navigator.mediaDevices.getDisplayMedia())
Then this media will be assigned to the video element in the html