This custom DraggingTool class makes guidelines visible as a Part is dragged around a Diagram and is nearly aligned with another Part. It is defined in its own file, as GuidedDraggingTool.ts.

Usage can also be seen in the Floor Plan Editor sample.