To create a floating window on YouTube, you can just right click twice on the video > Picture in Picture. On other websites, you either use a plugin or the media tab button on Chrome.