The issue to your question has nothing to do with the IMPORTRANGE
function.
It is about your reference to the sheet.
You need to enclose the name of the sheet in single quotes, because the name of the sheet itself has a blank space between the words.
As from the official help site on "Get data from other sheets in your spreadsheet":
If a sheet name contains spaces or other non-alphanumeric symbols, include single quotes around it
In your case use 'Retail Sales'!G9:G39
and surround this with double quotes.
=IMPORTRANGE("https://docs.google.com/spreadsheets/d/1SakMhmfUS-N7_zjOHLWL-dS75sxxqFtxn7aGfPsy3IA/edit#gid=190222386","'Retail Sales'!G9:G39")
You can also read more about IMPORTRANGE