Thanks for the answer Carlos!
I guess with the Port Selection Register, it is possible to switch between the two usb ports:
https://www.nxp.com/docs/en/user-guide/UM10562.pdf page 332.
Which means only one can act as host.
But the LPC4088 also supports USB OTG, so with one port configured as usb OTG (storage device), and another usb port as host device (i.e. for a keyboard) should be possible?
https://www.nxp.com/docs/en/data-sheet/LPC408X_7X.pdf page 112.
So now another question arises: what is the real difference between a usb host and usb OTG connection?
Currently I got one USB port configured as host and i can connect a usb mass storage device.