Exactly. Let's say there was one guy in the world who owned 99% of all the wealth. Is it really a bad idea to break his window so that he may disburse some money on getting it fixed?
Now, let's say the handyman whom the rich guy paid to fix the broken window uses that money to start a company that successfully competes with this 99% person?
If you generalize this, the conclusion is that broken window fallacy assumes that the pie needs to grow in a monotonically increasing fashion, when in reality sometimes the pie needs to shrink a little in order to grow a lot, if that shrinkage results in redistribution of wealth.
But the government could just print the money and hand it out as a UBI, without anyone having to waste time fixing a broken window.
The better idea in that case would be to create a new currency, distribute it equally to everyone, declare the old one worthless and thereby reset the market.