Welcome to PF!
That's a common mistake, unfortunately. I'm an HVAC engineer and I've seen portable spot coolers used to augment insufficient air conditioning...with the spot cooler rejecting its heat into the ceiling plenum, where the air is picked-up by the room's built-in air conditioning. Oops.