Note: I haven't used PiP or seen the code, so what I say may be off
The problem with PiP is that the client is already given the other players location and rotation as long as they are nearby (I imagine the same distance that PiP works in), so you just need the code to give a view of the world...