Check the black plastic bit on the outside of the car that runs the full height of the window. Mine passenger side rattles when driving along because the clips that hold the plastic has broken. I might shove some dum dum or no more nails etc to stick it again.
The picture below shows the area you need to check. If you can pull it out a few mm, then that is making the noise: