Some constructions of modular forms for the Weil representation and applications