Nearest point On navigation mesh

if I have a location (ai or character) outside Nav mesh, how can I find the nearest point from the location on nav-mesh?

did you find anything? im also needing this