This is only a guess but i think Lies of P would have an official dev playstation account (since the game is on ps4/5) and sony will provide an sdk for unreal that you can install into your project(using visual studio i believe). These sdk will contain thing like psn, achievement, driver controller etc… and that sdk is supposed to detect ps4/5 controller even on Windows.
If there no public tuto on this, that because of NDA of sony to dev.