Here is what I have done so far.
The frame is basically built like rectangle box. Made sure everything was square and the door fit in perfectly. I left a little room all around it for movement. The side opposite of the hinges I angled in so it would open smoothly.
there is a lip around the door frame that the door actually sits on.