The closest thing I think you’ll find that is unreal specific for scene capture / render target shadows is this video series:
Its not exactly what you’re looking for but there is a lot of overlap.
It doesn’t actually do a proper light space to view space transformation of the depth map, but that’s because it’s using decals so it can kind of hack it and get a good enough result.