This video explains the How Exactly the Open drain state of the GPIO pin works with animations.

In any MCUs, while programming you may come across the situation where you might have confused

whether to configure the GPIO Ouput mode as Open drain or Push-pull, the below video clarifies the open drain state of the GPIO Output mode.