Woodpeckers normally peck on windows to defend their territory from what could be an intruding bird, although they sometimes get this confused with their own reflection. Woodpeckers like to create loud noises to communicate with other birds. The messages they send normally have to do with territory or attracting a future mate.