Add window resize handling to not mess up projection.