while non-steam games on windows don't quite support ps4 controllers out of the box, for games on steam (except for a few old titles that don't play well with steam input) you can simply enable ps4 controller configuration support on steam input, and they will work seamlessly, no workarounds required, with many newer games even showing proper ps4 button prompts