I was going to to make a replacement one piece door and do a swing out mechanism. Not a powered system. However my wife likes the old bi fold doors. So, for now, Bi fold doors it is.
Notice the two attachment points are roughly in the middle of the door. Middle as in center line up and down, and equally spaced top to bottom. In all cases I have found there is a small link at the bottom or top to keep the door from being floppy. The door way is built to be kind of cone, or wedge shaped. The action of bringing the door closed, pulls it tightly into the door way. The harder you pull the door into the door way, the tighter the door is wedged into the doorway.