To open the doorway, you'll need to rearrange the Codex pages so they form a map of the world. It's pretty tricky, but if you get stuck, you can search online for images of the completed puzzle to see how it's supposed to look.