This moves window overlay from hard coded flags into drawing callbacks. It also supports snapping (holding Ctrl).