Your dehumidifier is an air conditioner, as is your refrigerator. The refrigerant in the coils takes heat out of the air on one side of your unit and sends the heat out coils on the other side. Disconnect the heater coils and refrigerant will leave the unit making it useless.
However, if you can make a way to bring outdoor air to the heat coils and send the heat outdoors again, the unit will be an air conditioner. It is easier to buy a window unit and place it in a window and use it as your dehumidifier in the summer.
The purpose of a dehumidifier is to take moisture out of the air both summer and winter; this means that the heater coils of the dehumidifier, being indoors, aren't subjected to the outdoor cold in the wintertime, avoiding damage from temperatures below 40 degrees. The manufacturers made a unit to satisfy a particular need. They could just sell a window air conditioning unit and tell people to use it indoors without placing it in a window, it will do the same job. That is why they are made by companies that make both.