Is it possible to detect geometry that does not contain collision components with a raycast?

I’d like to be able to detect any static actor/geometry that is standing between the camera and the view target, but some of this geometry does not have any collision components.

If so, how?