A black baffle apart from the widow would keep light out but still enable ventilation. But actually a mechanized ventilation should be standard in any darkroom.