Compact heat pumps that slot into windows could be a planet-friendly way to efficiently heat and cool apartment buildings without breaking the bank, experts say.