This tree is exhibiting tropism. More specifically, the tree is exhibiting phototropism. Phototropism is the growth of a plant in response to light. Light is very important for a plant because it drives photosynthesis. The end of the shoot (shoot tip) has a special protein that detects light. Therefore, the tree grew towards the window.