Implement visual geometry hit testing (#21768)