Handle window resizing with THREEx helper