If a device is intended to move heat out of a room, it can potentially work oppositely as well. To get your air conditioner to work both ways, you can add a reversing valve. Consequently, the coolants will work in reverse order so that the cool air will be thrown outside while the hot air will be pushed in.