I did this about 5 years ago, because I had no other choice when it came to space. I ended up removing the drain from the tank and hooking up two flex lines, one from the supply and one from the drain. I ran the drain down to a ball valve on the wall with about a 4 ft piece of pex pipe via an adapter hooked to the other end. About once a week i have my garage door open and open the valve, and it sprays the water outside via the pex, do it slowly : ) I also hooked a large PVC fresh air tube from my soffit vent to try and draw in some cooler air on the intake side, I live in NC so an attic here gets every bit of 140-150 in the summer time. I do my best to make sure I turn on my unit in the morning or evening after working in the garage so I dont run it that hard in the middle of the day. I ended up making a steel plate that sits on top of two side by side rafters and put rubber bushings on the feet of the unit from sway bar end link kits to try to isolate the vibration, it helped, but its no success story by any means.