One should light by their window even if they live in a high rise apartment. The assumption is that people from the street or people in other tall buildings will see the Menorah.
When staying at a hotel on Chanukkah one’s lighting options become limited. To light at the window would be pointless because [most] hotels have blacked out windows. To light inside near the doorway, which is the next best place, is usually very difficult as most hotel rooms open up to a narrow hallway with a bathroom on one side (can’t light there) and a closet on the other (safety hazard to light there). The best place to put the Menorah is in the area where the hall opens into the main room on the right side. If that is not feasible then lighting the Menorah anywhere in the room is fine.
In terms of the fire alarm going: No guarantees but I have personally lit candles in hotel rooms many a time with no alarm going off.