How does \Magento\Catalog\Model\Product::getTypeInstance() work?

Context:

Details: How does \Magento\Catalog\Model\Product\Type::factory() work?