Why would a robin attack your window over and over again for prolonged periods of time?
Stupid Robin!! He’s attacking his own reflection in your window. Trying to drive off, what he believes is, an interloper into his territory. Anything to break up the reflection will cure his confusion