The door is the best way out. It is locked.
This is the low-spoiler guide for "Opening the door" puzzle in Anna's Quest. Unlike in normal walkthrough, you get gradual hints on how to solve the puzzle. Click the big button below to see your first hint. If the hint contains a spoiler, you will be warned about it before clicking.