In the house I currently own I use two small 8,000 btu window air conditioners to cool down the entire house, upstairs and down. They put out a good amount of heat on the exhaust side to the outdoors. I was thinking about installing one in my shop room in my pole barn which is enclosed and insulated and exhausting it out into the uninsulated portion of the pole barn which has roof vents. I have a 4'x4' grow tent in the shop. My shop is much larger than 5'x5'.
I believe a window air conditioner would be way oversized if it is just used in a 5'x5' space. I would think a portable air conditioner would work better as they are a bit larger than a dehumidifier and use a flexible vent much like an exhaust fan vent which you could extend to vent out a window to exhaust heat and humidity outside your garage.
If you use a window air conditioner in such a small space I'd go with the smallest available, likely 5,000 btu. If in US, the Energy Star models would likely be best than some older larger unit. From Wal-Mart many models are available for just over $100.00 and will cool 100 to 150 square feet. Set the temperature control high enough that it rarely needs to kick on.
I just checked my spare window unit and it's a 5100 BTU. I think I'll install that in the room this weekend and vent it out to the garage. If that gives me any trouble I'll upgrade to a portable, or maybe even a split.
I'm still planning to keep the intake vents from the cool house open after I install the AC; is that correct?