Boy sitting looking through a glass window at a train station.
A boy is looking through a window at another boy at the train station.
The boy could be looking through a window at another girl, not necessarily a boy.
We have no idea if he is looking at another boy or not, he could be looking at anything or anyone.
You can not infer he looking at another boy.