On the side
If I didn't live in an apartment I would have a base setup with one. My last base antenna was a shakespeare army stick...it was a good antenna..but.
A lot of how you can work out of an apartment depends on the building's siding. If it's metal, you're kinda screwed, other than getting something in a window, or out on the patio.
I know someone in a 2 story apartment years ago that just laid a big stick on the inside stairs, and was able to work around halfway decent.
If you got a patio, think about putting a 20 meter(or whatever band you want to play on) 4' whip in a flower pot, put some plastic fauna around it from a craft store, and run ground to just about anything, the patio rail, a water pipe, or run a 1/4 wave counterpoise.
If you don't have metal siding, string up a dipole, or a G5RV Jr, inside the house, on an exterior wall. Doing inside does attenuate your performance some, but if you're causing RF, no one knows who's doing it. When I first got in the hobby, I strung dipoles inside my parent's attic, and worked all over North America, and into Ireland and France. The beauty of playing with dipoles is they are cheap to make, and you'll be surprised at how well they play, even inside.
I know someone will find fault with the above suggestions, but at least you're on the air.