
Go to Site settings -> Site collection features -> Activate Open Documents in Client Applications by Default feature.
Go to Library settings -> Advanced settings -> Set Open documents in the client application.
Then when you click the file in the modern document library, it will ask you to open client application to edit files.
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.