There was no need for apps to ask that. Previously, apps would just say "draw this dialog box in the user's preferred color scheme" and it would work fine. The only reason this dark mode hint is necessary is because too many apps started ignoring the Windows system color scheme and doing their own thing.