PiP is supported for YouTube etc. too.
Control-click/Right-click on a YouTube video – the first time around it'll show its private menu – then CLICK AGAIN on the video, which will bring up Safari's menu for videos including the Picture-in-Picture option: http://i.imgur.com/ekWnBQr.png