It's not actually for the sliding window, it's normally attached to a catch 'tundish' for the door handle.
View attachment 272977
Without it, any water getting in via the door handle will be running down inside the door skin and collecting at the bottom of the door.