Mechanical Layer, besides for mechanical outline of the board, you can use it also for different indication. Say you want to keep a clearance of 4mm in between frame ground from other pins and traces, you could just draw a 4mm wide line in between using mechanical layer as an indication to keep the clearance.
Most of the PCB design software support "cut/subtract", therefore if there's a plane fill overlapped with this mechanical line, you can simply subtract it out from the mechanical line. It ease your day for keeping clearance just simply using mechanical layers.