Sometimes you want to browse other tabs but keep watching YouTube in the background.
This apparently disappeared with HTML5 but it's still there on OS X High Sierra.
All you need to do is right-click on a video (a black menu appears)
and then right-click press again (now a grey menu appears).
Select 'Enter Picture in Picture' and the video will pop-out to the top right (can be repositioned & resized).