When we detect a video inside the app, PiP icon shows up on the top bar.
By simply clicking it you activate PiP. However, as I have observed myself, it sometimes doesn't work and this is due to video not been in the focus. So if you click and it doesn't work, pause the video, play it again and then click PIP.
For more info on that, check out this article: