You can achieve this in several ways:
Create alternative viewport(s) and set it before rendering each your Picture-in-picture stuff
Render to texture and then just draw it as textured quad (sprite)
Many cheat-tricks with a stencil buffer
(links above go to native functions, but I hope you can figure out ones for your framework)
Maybe I've forget something else. Hope it helps.