Just to point out a bit of reality here - exam rooms, especially in smaller office settings may have the head of the table in various directions. It's really not that uncommon to have a situation when entering the room that you are in fact facing the stirrup end of the table. It's a reality of how the sink plumbing, computer workspace, chair arrangement, and so forth affect how opposing or adjacent exam rooms are layed out. You are not going to turn the table around just because, as that would alter the entire configuration setup of the exam room.
Now if events rolled out entirely as described, and a doctor performing a pelvic exam, or any exam for that matter, jumped off the exam stool trying to block a door while grabbing a sheet cover, taking it with him , stumbling and falling - this is not a medical office or physician - this would be called a clown show.
Next - you would never for any reason lock an exam room door from the inside, even if it were for some bizarre reason possible to do so. This would be a complete violation of safety protocol. In the event of a fire, a tornado, a bizarre equipment failure sending sparks flying, anything at all - you have just put a patient and yourself at serious safety risk up to and including death. No this will never happen in real life.
I'm not being dismissive, weird things happen, though I've never once had anyone open an exam room door during an exam of any kind. Patients do not get to peek into an exam room where the door was closed, there are protocols in place when an exam room is occupied and flags that it is.