I have Lenovo tab E8 that, when in OTG host mode, can:
1) supply power for connected USB device (when ID pin is shorted to ground)
2) charge using power that is supplied by USB device (when ID pin is connected via 10 kOhm resistor to ground)
My USB device doesn't always have external power supply connected to charge the tablet (then it shorts ID pin to ground) but if it has external power connected, it connects ID pin via 10 kOhm resistor to ground to tell the tablet that it can charge.
I discovered that there are manufacturers (or at least one) in China who can manufacture 5 core USB cable.