It is permissible to do this when it is needed, and ghusl is not required for that. It is also not necessary to do it (ghusl) in the event that other than the male part is inserted, unless the insertion of the device leads to the abundance of the liquid of desire, then the insertion is also forbidden.