Sectioning is not the end, they will sort out her medication and hopefully put things in place for your mother to return to care home. If any consolation my mum used to climb out of my windows late at night, nothing to do with wanting to get to someone or trying to get away from me, it was just something she did. To this day I am amazed that she actually got out, all windows on ground floor, but I'm convinced if we had a 1st floor she would try and not be aware that she was one floor up from ground level.