It's a matter of common courtesy. EVen if I'm not the one who rolled down the window I always ask, "You want me to roll the window up?" Your friend shouldn't have gotten defensive. You were totally right to say something, I would have!