While a video is playing, close the YouTube app to use picture-in-picture (PiP). The video will become a PiP window if the PiP setting is enabled. When the PiP window is moved to different positions on the screen, playback could take precedence over other applications.