A dehumidifier is designed to collect and remove moisture, not necessarily ventilate a bathroom. Some dehumidifiers do pump in dry air, but these humidifiers are part of a greater HVAC system. A regular, portable home dehumidifier instead of a bathroom fan cannot be used.