First of you have to build up a stud frame the way it's done for huge place of plasterboard and you can used hardibacker.you will necessary it for solid frame to stop motility in bath panel .
Provided solution from Jasonb is really very good . One one my friend finding same stuff like wise this . So it helps him lot . I am suggesting him to saw first this . I appreciate you help .
In above link contain Magnetic Sprung Push Catch description . Almost all the important point include in description and product review also . It helps to those who have no knowledge about this .