Vent portable a/c without a window
All portable a/c units must be vented to outside. Usually this is through a window, but some apartment buildings have ports through walls for venting portable a/c units.

The idea that one could vent it into a bucket of water is not factual. It is either an innocently spread myth or an outright hoax.