Hi Samreen. In this particular study ammonium hydroxide is not used to obtain an ionic liquid specifically - it seems to be applied only as a base to obtain ammonium hexafluoroacetylacetonate, which is a complexing agent for selected metal cations. Following the complexation of metal, the ammonium cation is exchanged for a quaternary phosphonium cation in a metathesis reaction. This results in formation of ionic liquid and a by-product - ammonium chloride, which is washed away during the extraction. See Experimental part and Scheme 2.1 in the cited document.
You can use inorganic hydroxides to turn quaternary ammonium halides (common ionic liquid precursors) into quaternary ammonium hydroxides. They can easily be neutralized with almost any acid, yielding a designed ionic liquid and water. However, ammonium hydroxide is not a popular choice for this process.