A graphicsPath should only be created from a wxGraphicsContext or wxGraphicsRenderer.