How to Add Apartment Number (Optional) field at checkout?

I would like to add the Apartment Number optional field at checkout (without third-party plugins) so it will be added automatically at the New Customer Order email and PDF invoice that is automatically generated.