World Position To Depth

I’m rendering a custom depth texture from an scenecapture actor which remains stationary in the world. Now I would like to transfrom a visible pixel world location to the uv of the custom depth map and thus check if this pixel is occluded.

I think it is similar to how shadows are rendered.

How can I transform the world location of the pixel to the depth uv?