Based on the provided quotation, the most likely reason the author includes the detail about leaving the window open is to suggest that Thea:
Has a stubborn streak that resists authority.
The fact that she leaves her window open despite advice from her mother and Tillie indicates her desire to do things her own way, even if others disagree.