public void RenderBackgroundAndBorder(float x, float y, float width, float height,
                                       ref NativeBackgroundAndBorderStyle style)
 {
     if (!DrawingEngine_RenderBackgroundAndBorder(_native, x, y, width, height, ref style, out var error))
     {
         throw new InvalidOperationException("Couldn't render background and border: " + error);
     }
 }
 private static extern bool DrawingEngine_RenderBackgroundAndBorder(
     IntPtr drawingEngine,
     float x,
     float y,
     float width,
     float height,
     [In]
     ref NativeBackgroundAndBorderStyle style,
     [MarshalAs(UnmanagedType.LPWStr)]
     out string error
     );