Prevent nodes being placed exactly above each other

I’d like to come back to this. While working on:

The idea came to my mind to simply visually highlight colliding nodes i.e. by placing a red dotted frame around them.