Pythagorean Squares

Click and drag the red point. How does it move? Do we always have a right triangle? Why?

What is the relationship between the sides of the triangle? What is the relationship between the areas of the squares? Are these relationships related?