Hi, i don't have a specific tutorial i could share, but in short, i draw a preview at mouse position and check for overlaps with paths and such invalid places every frame. Area2d overlap check is a good starting point to look into :)
Thank you!