Getting past the first guard is easy. It's all a matter of hiding.
Just don't go up to the door until the guard has come and left.
Once you're out of that first room, it gets tougher. No door is safe.
But there are other things that you can open.