Hello @Shikamaru
Unfortunately, there is no example or demo for this dual role device on STM32F7. OTG requires additional circuitry to support the protocols, called HNP and SRP as explained in the reference manual. With reference boards dedicated to F7, I guess this would not be achievable.

However, if you want to learn more about USB PD dual role application, here is a ST wiki to help you step by step create your dual role application.
STM32StepByStep:Getting started with USB-Power Delivery Dual Role - stm32mcu
I hope this helps!
To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL