Hi @sadev, sorry for the late response, I moved your question to the Solidity Support category because this is related to our contracts library.
Generally, when a major version is released (eg. 4.x - > 5.x) the library is not backwards compatible anymore. In the case of OpenZeppelin Contracts, we provided a migration guide.
You can migrate your project easily if it hasn't been deployed yet. Upgrading from 4.9.3 to 5.x is not recommended because it changes storage locations, and for the same reason I doubt you can use both versions of the library at the same time.
I think I didn't explain properly given your reply @ernestognw
I want to have them coexisting. For two reasons:
On the dapp they will coexists.
For my dapp, I can't start from scratch all the contracts. But I want to update some of them. So..., I need to keep the old ones upgraded but with v4 and the new ones with v5. If I want to test them together, I CAN'T.