Muppit, you seem to misunderstand the principle of a lightning strike. Imagine the window frame was struck in the above instance ( a metal frame). A step leader will punch it's way through the air from the cloud, towards the object to be struck. At the same time ribbon lightning (tendrils of electrical charge) will go up from the window frame towards the thunder cloud that the step leader is coming from. ( There will be a number of ribbons of lightning in the local area usually, not just one). An electrical ribbon and the step leader will meet somewhere in mid air and the charge will leave the window frame and drain up into the cloud. It is wrong to think of a lightning strike like a bullet travelling towards the window pane and punching a hole in it.
This is because a thunder cloud is like a large battery + at the top - at the bottom. As like charges repel, buildings and the ground become + charged, called the ground shadow. When a strike occurs - charge floods into the ground shadow to help rebalance - ve & +ve electrons on the ground. This sudden rebalancing can be destructive. It's not a simple process.