OK, as far as the rear window, you are good to go, follow the above advice (in my opinion).
As far as the front window, the previous owner / tech could have broken the plastic teeth that holds the door to the door frame when they removed it after the accident (Probably to knock out the dent).
You need to take the door off gingerly to fix it / analyze the situation or you could leave it be and live with the window clicking. It is up to you.
Or you can take it to a tech and let them deal with it.
'89 420 SEL
'90 300 SEL
'68 Olds 88 Convertible
'84 300 SD (sold it)