notifies the backend about a view port resize that happened
void resize(int width, int height, int pixelWidth, int pixelHeight);