Simply running a window A/C unit indoors will heat the room. If the compressor-side air intake and exhaust are piped outside, you may be able to rig it up, but the efficiency will be low and you may burn out the compressor by working it too hard.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.