Using the undocumented SetWindowCompositionAttribute API on Windows 10, it\'s possible to enable glass for a window. The glass is white or clear, as seen in this screenshot:
AccentPolicy.GradientColor has effect when you play with AccentPolicy.AccentFlags, I found these values:
2 - fills window with AccentPolicy.GradientColor - what you need
4 - makes area to the right and bottom of the window blurred (weird)6 - combination of above: fills whole screen with AccentPolicy.GradientColor and blurs area like 4
To set AccentPolicy.GradientColor property, you'll need ActiveCaption and InactiveCaption system colours. I would try Rafael's suggestion to use (see update). Also there is a question for Vista/7.GetImmersiveColor* family of functions
Note: I tried drawing with GDI+ and saw that FillRectangle() works incorrectly with Glass when brush.alpha==0xFF (workarounds here). Inner rectangles have brush.alpha==0xFE on both screenshots because of this bug.
Screenshots note: GradientColor==0x80804000, it doesn't have to be premultiplied, just a coincidence.
Update: To get accent color, you can use C++/WinRT - it is a documented and thus preferred approach for Windows 10:
#include // may need "Microsoft.Windows.CppWinRT" NuGet package
...
using namespace winrt::Windows::UI::ViewManagement;
winrt::Windows::UI::Color accent = UISettings{}.GetColorValue(UIColorType::Accent);