A boy looks out the window at another boy who is spraying the window with water.
The boy is looking at another boy.
One boy looks out the window at another boy spraying water.
Sentence 2 confirms that a boy is looking at another boy.
Because the boy looks through the window at another boy, the boy is looking at another boy.