The real final fight in Sonic Rush is a two-character affair, and each half of the pair has one job.
As Sonic, knock the boss's bullets back into the window. As Blaze, do the same with her fireballs, launching them into the window instead.
Keep alternating between the two and the window takes all the punishment — that is the entire strategy.