I was wondering the same.
If your IDE allows you to check the definitions of the selectROI function you should see something like this :
CV_EXPORTS_W Rect selectROI(const String& windowName, InputArray img, bool showCrosshair = true, bool fromCenter = false);
A function which is overloaded with this definition that we use the most often :
CV_EXPORTS_W Rect selectROI(InputArray img, bool showCrosshair = true, bool fromCenter = false);
This means you can use both functions depending on which arguments you put.
Concretely you can do something like this :
cv::namedWindow("Resized window", cv::WINDOW_NORMAL);
cv::resizeWindow("Resized window", 1280 , 720);
cv::Rect rect = cv::selectROI("Resized window",img);
If you don't want to mess the ratio of your image, you will probably have to adjust the parameters 1280 and 720 according to your picture.