Right click twice on the YouTube Video.This first time, on how to have PiP on Safari, is courtesy of a great tweet by Ricky Mondello.
If you’re using a Mac, you can easily set up PiP for a YouTube video using either Apple’s Safari or Google’s Chrome browsers as well.
It lets you pin a small window showing a video within a larger window on your computer or TV screen. If you like to work with a music video playing in the background or watch your favorite sports team while perusing social media or maybe if you simply like doing two things at once, picture-in-picture (PiP) can be really useful.