Cosmology with the submillimetre galaxies magnification bias: Proof of concept