In general, this guide does a good job describing the procedure.
But there is one tricky bit, and that is setting up a black border around the PIP. This is somewhat optional, so feel free to skip it. Here's the how-to video, and here's the obs-shaderfilter download.
Make sure you click "Load shader text from file", and choose border.shader.