fix dragging of windows by calculating delta position and fix port view duplicating geometry