For example you could convert the heat into photons (infrared radiation) and beam that out of the room without needing a pipe. You would probably need an infrared transparent patch on the window to aim at.
You can’t. The second law of thermodynamics prohibits it.
“It is impossible to devise a cyclically operating device, the sole effect of which is to absorb energy in the form of heat from a single thermal reservoir and to deliver an equivalent amount of work.”
For example you could convert the heat into photons (infrared radiation) and beam that out of the room without needing a pipe. You would probably need an infrared transparent patch on the window to aim at.
https://spie.org/news/5129-a-metamaterial-to-convert-heat-to...