Tiling by two squares

Explained in the Numberphile video featuring 2006 Fields Medallist Andrei Okounkov.
You can stop the animation and move the three points defining the two adjacent squares. Of course, Pythagoras theorem gives you the size of the tiling square, whose area is composed of the union of the area of both squares!