First let me know what is the model and year of your car.
but so you know, there is a little swicht inside the door lock mechanims on the drivers side and passanger, that swicth tells the car if the door is closed or not, So if the swicth is gone, or going, it will keep making contanct so the car does not know what is going on, that is why you have the weird lights and door lock problem. the lock pop back up because is think the door is open. when is not.
also on the window issue, the electric motor has a magnet built in to it to tell where the window is at. if this magnet backs up, whicg does, the motor has no clue where the windows is, so it does know exaclty where it is.
you can push the magnet back in, but is such a pain to get there, i would greatly tell you to get another motor on ebay and replaced it.
If your car is a coupe or convertible, since the window does not have the metal frame on the top part, there is a feature that drops the windows a couple of inches when you open the door. if the switch on the door lock is gone, the window mechanism is thinkin you have the door open,, and for that reason it will not lift the window.
I would first replace the swicth on the lock, this will fix the locking poping up and should fix the light. if the window still acts up on you, then replace the motor. you can the whole thing, motor and lifter on ebay.
be careful when changing the lifter, you will be taking adjuctments bolts out and so the window need to be adjusted, to prevent headaches, use whit out to mark where exactly the new lifter has to fit in. this will, in most cases, prevent from having to do adjustments.
You are a BMW driver when you become part of the "Ultimate Driving Machine"
Fraude an Fahren
BMW > Bayerische Motorenwerke
Auf Viedersehen der herr www.clemsonfsae.com