It is a key feature of many modern bedrooms and bathrooms and can be a key factor in how well a room is constructed.
It comes in handy if you have a sliding door or a latch that opens and closes.
This video shows how to make a mirror closet doors closing and locking.