You would have already given your checkin baggage to the airlines, which means when you will be at Vietnam airport for layover only. If your nationality give you a without visa entry in Vietnam then you can enter Vietnam during your long layovers. For example, Indian nationalities need e-visa approval to enter Vietnam, the process takes 3-5 days. By having this e-visa the traveller can enter Vietnam during layover but only for once.