Closest point on mesh

Can someone explain to me this?

Is this like raycast?

I maybe using it wrong since the result returns nothing…
But is it not like, a radar detection system, that returns any closest hit within radius?