On the Rankin-Selberg convolution of degree $2$ functions from the extended Selberg class