All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
The jurists stated that it is not permissible for a Muslim to attend a place where sin is being committed except for a sound reason, like forbidding the evil; this is in principle.
Shaykh Mustafa Ar-Ruhaybaani from the Hanbali School of jurisprudence, when discussing the ruling of responding to an invitation for a Waleemah (i.e. a marriage banquet), said: “If the invitee knows about the evil but he does not see it or hear it, then he is allowed to sit and eat as established in the School [Hanbali], because it is only forbidden to see or hear the evil.”
Based on this, if you can be in a hotel where you cannot see any of the evil things taking place, like when there is no intoxicants in the room where you are, then it is permissible to go to this hotel.
If it is not possible to avoid seeing the evil in this hotel and you are in need to go to the hotel, then you are not sinful but you are required to leave it as soon as the necessity is achieved.