Awesome idea if a bedroom is against a hall closet! Never really use the entire hall closet anyway! Save on the clutter and fill uneeded space in the closet to be used for more floor space in the bedroom!
Home welded hardware (but you can buy tracks like this for doors) create-with added wood-a sliding door for a master bathroom. No swinging door to take up space in either room. Maybe something not so country looking.