How can I create a closestPointOnSurface node?
 
 
 

To create this node, simply enter the following in the Script Editor:

 createNode closestPointOnSurface

Then you can connect it to another node using the Connection Editor.