Pretty cool. I had to experiment quite a bit to get the "masking" to work but setting the portrait background to pure black combined with a white shirt got it done.
Here's a cool one
Uses a normal map created from a depth map to displace the underlying layers, then adds original image on top with multiply.