Novel modelling of ultracompact X-ray binary evolution - stable mass transfer from white dwarfs to neutron stars