Hi, I am a professional certified mechanic, with an engineering background, and 35+ years experience. I will do my best to assist you. Also keep in mind I don't know if you are a pro or a novice, so feel free to add any additional info at any time.
You requested me earlier, I wasn’t available. My apologies for not being available. I do agree that the problem shouldn’t be the door switch,. There is a known problem on this model with splices behind the passenger side kick panel. There is a large wiring harness runs there. If the splices get wet they commonly loose connection and cause the symptoms you have. Many times AC condensate drain plug up and leak behind kick panel on passenger side. You mentioned a window leak, that could factor in from excessive moisture inside the vehicle. The problems can be intermittent, or consistent failures. The electrical symptoms from this problem are mainly with lighting, door locks, and radio staying on. I would open the wiring harness up, seeking the splices out and soldering them. There is a good chance this will correct the problem. Go over all of this and if you have any more questions at all, I am here to help. Good luck with it, have a great day, and Thanks for using Just Answer.
I do not get paid for my work unless you rate at 3 to 5 Smiley Faces or Stars, a bonus is always greatly appreciated. If the answer is not clear, let me know what additional help you need, and I will be happy to assist you further.