The reason is that the object in question might be being constructed as part of a world starting up or some other scenario. It’s also possible the object is being constructed on a dedicated server, which has IServerContext instead of IGameContext.

If you need to set up resolution initially, the best place to do this is to override the methods in CoreGame that relate to resolution and window configuration.