Converts a given point from the global coordinate system in logical pixels to the local coordinate system for a box.
Used by AndroidViewController.pointTransformer.
typedef PointTransformer = Offset Function(Offset position);