Open YouTube and start playing your video. Swipe Back to previous screen in YouTube while video still playing minimized. Swipe down the notification panel and click the settings icon. Now swipe up to your home screen. YouTube should still be playing in PIP.