Doesn't matter how you ended up in the locked room, now it doesn't matter at all. And what is relevant now is to quickly find a way to get out of here. Logically, you need to open the door, but it is locked. You need a key, which may be located somewhere in one of the caches. Pay attention to the furniture, almost all the doors are also locked and either an ordinary lock hangs on them or there are special windows so that you put the correct combination of letters or numbers in them. Some items should be collected and placed on the inventory panel at the bottom of the screen, then you can take them from there and use as needed in the Guest Room Escape.