When no power is applied, the MAX77958 will act as an UFP so will appear as a Sink when a Source is connected.
The USB type-C functions are controlled by a logic state machine compliant with USB- Type-C version 1.3 standards. See the following for more information
https://www.usb.org/sites/default/files/USB%20Type-C%20Spec%20R2.0%20-%20August%202019.pdf