I find that my HP Envy x360 works OK with the HP dock G5....IF THE BATTERY isn't too low.
If the battery is below about 20%, the displays attached to the dock won't work. If the lid is closed and the battery charges up a bit, the displays will come on. I have 2 displays attached with DisplayPort cables.
The displays and other USB attached devices seem to all work fine.
The dock does charge the laptop.