Question: can villagers see through glass?
Answer: Mobs (excluding Zombies, Spiders and Slimes) cannot draw line of sight through glass. And I think this one in particular is more than relevant : Endermen can't see the player through transparent blocks such as glass/glass panes. Feel free to stare at them from your house now.