Dualshock 4 controller vibration (rumble) not working with Retroarch

The Dualshock 4 controller vibration/rumble is still not working with Retroarch, regardless of the Retroarch controller driver settings (SDL2, DirectInput or Xinput).

Other emulators like RPCS3, PCSX2, Yuzu and Cemu all detect the rumble motors, without third party software like DS4Windows or Steam.

Why is that?