Passenger door replacement

Hi guys. I'm preparing myself to change doors in 2002 Celica. I took a door card off, wing Mirror and now I got a question - before removing doors from its hinges I need to do something with Electric cable coming in doors. How to unplug it and where? Thank you for all replies.