Instead of fastening the barn door rail to drywall first screw a ledger board to the wall studs for a sturdier mounting surface that allows the hanging door to clear the door frame.
Sliding barn door from the other side.
If you put a handle on that side it won t rest against the wall when it s open.
However it is possible to install a flat door handle a flush handle similar to what is used on pocket doors or a lock to close the door from the inside.
If you look on the hardware store websites their barn doors only come with one handle.
Maybe you re supposed to grab onto the trim boards.
Purchase a door that s as tall as the opening height or opening plus trim and 2 inches wider than the door frame to cover the entire opening.
Most sliding barn doors are designed to only be opened from one side since the wall would get in the way of the handle.
This application is great for areas where barn doors are desired but there isn t adequate room on either side of the opening for the door to slide.
The final option is bypass doors.
It takes some time but if you lay out one trim piece diagonally and mark it at the ends where it meets the other window and side door piece and then draw a line from your mark on both sides to the center of end of the piece you can match the pattern up pretty good to get a tight fit inside.
First be sure you have enough room for barn doors.