WARNING: This page is about a different car, the 2003 Mazda Protege5 and 2003 Mazda Protege. However, it is still accessible from the selected car via links, so may be relevant.
Hold the drum and the cable with the bracket to prevent them from being pulled out with the power window motor.
Fig 1: Identifying Power Window Motor, Cable Drum And Bracket