How can I run older Xcode version on new macOS version?

I am facing a problem running older versions of Xcode on newer MacOS versions. For example, Xcode 13 on MacOS Ventura.