public static void SetFramePadding(this IntPtr window, Margins padding) { if (IsCompositionEnabled()) { PInvoke.DwmExtendFrameIntoClientArea(window, ref padding); } }