I have not seen a way to use and use vendor specific paper sizes. Which is available using vendor driver instead of the Universal Printer Class Driver.
If I select the vendor driver in the printer properties, then I can select the paper size but it does not print and errors out.
In my case, we need this for a label maker (Dymo Labelwriter 450 Turbo)