You won't need to install Sonoma, I am currently using a 2019 MacBook Pro with 13.6 and it works fine. To download Xcode 15.1 beta 2, go to the downloads directory of Apple developer, then click the Xcode tab, it should be on the top left of page. Tap download at the top right, then tap Xcode 15.1 Beta 2. Click the show details tab next to the Xcode 15.1 beta 2 icon and download the zip file. After it downloads unzip the file and then move it to your applications folder. You are ready to begin! Xcode 15 beta, not Xcode 15.1 beta 2, will also be able to be downloaded using these instructions, it is just further down the page.