Xfce supports HiDPI scaling which can be enabled using the settings manager:
1.Go to Settings Manager > Appearance > Settings > Window Scaling and select 2 as the scaling factor.
I wonder to know if we adjust 'Window Scaling' is '2X', at this point, what is the value of DPI ? And how get the DPI value using program(C/C++)?