In Mojave even if your application did not target the 10.14 SDK you could detect with the OS itself was in dark mode by reading the "AppleInterfaceStyle" userdefault. With the introduction of "Auto" in Catalina this is no longer the case as when "Auto" is activated the value of "AppleInterfaceStyle" is not updated to "Dark" appropriately.
Does anyone know a different trick that works in catalina to read this pref when you can't guaruntee the application you're running in is targetting >= 10.14 SDK (to get access to the correct effectiveAppearance).