Added the shadow viewport element, to remove the need of the virtual onResize event.