If you need to create new products while you are creating an invoice, you can either save your invoice as draft or just leave the invoice draft page to create new products (Account settings | Services/products).
You can return to your invoice draft and continue working with it and choose the new products.