Van Aubel's theorem

The orange dots are at the vertices of a quadrilateral. A square is erected on each face of the quadrilateral. Blue and green line are drawn joining the centers of opposite squares. Drag the orange dots to reshape the quadrilateral. Can you explain the observed behavior? What problems could/would you set for your students based on this applet?