OverPicture is a macOS Safari app extension that allows you to play any HTML video with the new Picture-In-Picture mode.
You need to open the application and then enable the Safari app extension in Safari Preferences. Consequently, a Picture-In-Picture button will appear in the video players.