Initialize called from abstract viewport constructor.