Warmer air in the room being lighter rises up and escapes through the ventilator. The empty space is then filled up by fresh or cold air coming from the windows/doors. Since transfer of heat is taking place through actual movement of air, the phenomenon of convection is involved here.