How does cover work?
Specifically a ranged attack into melee creatures...
Sharpshooter removes cover anyways...
You can see through a window but you can't target through a window.
https://www.youtube.com/watch?v=nbC74sKKfA0&list=PLQMqiULo_05OupYIohJFqY1UIKMEGWNA2&index=7 (Cover and Line of Sight)
Regarding windows, glass windows weren't common until the 17th century.
The original DnD world was set around the 12th century (The Middle Ages are 13th to 15th century). Eberron is modeled after the 1900s.
https://www.reddit.com/r/mattcolville/comments/a3ytyv/dd_set_in_the_early_vs_later_middle_ages/ https://www.reddit.com/r/DnD/comments/7kowlg/what_time_period_is_dd_based_on/
https://en.wikipedia.org/wiki/Window
Cover and Line of Sight
To determine whether a target has cover against an attack or other effect on a grid, choose a corner of the attacker’s space or the point of origin of an area of effect. Then trace imaginary lines from that corner to every corner of any one square the target occupies. If one or two of those lines are blocked by an obstacle (including another creature), the target has half cover. If three or four of those lines are blocked but the attack can still reach the target (such as when the target is behind an arrow slit), the target has three-quarters cover.
https://rpg.stackexchange.com/questions/172029/how-to-resolve-multiple-sources-of-cover-when-using-a-grid
https://rpg.stackexchange.com/questions/30211/line-of-sight-cover-along-walls-and-around-pillars