mY M35 did this a few weeks back,
did tough mudder and road there was bumpy as hell- made the two bolts holding the window track come loose and fall out- so a constant rattle was in the door-
pulled trim off and bolts fell out-
saw where they were meant to go- had to pry plate back into position and then rescrew.
before replacing trim, checked window movement and did go all the way up but then went down 5cm- found out this was due to the door trim not being on yet,
Once trim on work perfect and no rattle!!