In this way only all published content types can be added. Please go to content type hub gallery in the SharePoint admin center, then published content types that you want to add. After that, you could add content types in this way in the document library.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.