How to make node avoid another node while dragging

A post was split to a new topic: Setting location of a group