Xcode 14 is required by macOS Ventura. But if, in case you want to use your old version of Xcode (e.g Xcode 13), you can launch it directly from the finder or from the terminal.
To open in finder navigate to:
Applications Folder
> FindXcode App
> Right click on the app and
click onShow Package Contents
> OpenContents
> Open
MacOS
> and launchXcode
.
Or
Run the following command in the terminal:
open /Applications/Xcode.app/Contents/MacOS/Xcode
.
Update:
The same procedure can be followed to use Xcode 14 in macOS Sonoma.