Awesome
YouPiP
Enable native Picture-in-Picture feature for videos in iOS YouTube app.
Activate PiP by playing the video and dismissing the app, or tapping PiP button in video tab bar or control overlay.
Build it yourself
Use iOS 15+ SDK and latest THEOS.