Is it possible to trace from a pixel onscreen to a specific point and see if it hits anything?

I dont think it is possible but if theres some tutorial/method/script out there, that would be really nice, i dont expect the answer to be yes, but it cant hurt to ask.

You can raymarch through scene depth for that.

A good start would be here:

Thank you very much.