There are three topics I'd like to discuss: rating; isolation; and other sources.
1 - Rating
In a typical application, such as UC3842 flyback with primary-side auxiliary winding to supply the controller:
The winding is rated for whatever current it is designed for, and the only limitation is cross-regulation, or voltage range, or whatever else is set by design.
Cross-regulation refers to the voltage change in one output, due to the change in load current on another output. Typically a flyback supply is limited by the leakage inductance between windings. The output voltages track when all outputs are loaded proportionally, and differ when loaded differently.
Typical designs are not rated for much on the aux winding, limited mostly by wire size I suspect. For example, many off-the-shelf inverter transformers provide a "15V 50mA" winding, or something like that. (The voltage rating of course is merely a suggestion, where the transformer will operate best; within reason, as the aux/sec ratios are fixed of course.)
As example, I once built an LED lamp with a small fan powered by the primary aux winding. This required a start-up circuit, as the fan is too much load to permit startup otherwise (it would brown out the controller's meager startup bias; further exacerbated by a widely adjustable output range). I just used a time delay driven by the gate drive output, thus the fan stops if gate drive stops, and the fan starts after some delay after the gate drive starts.
2 - Isolation
Specifically for your application (DC OK output signal), the primary winding is unusable. It is connected to mains voltage for one, and even if not used to power the controller, will generally have inferior isolation rating -- as it only needs to provide functional insulation, not reinforced.
Which means you might not be able to use such a winding on an off-the-shelf part, even if you didn't need it for the primary side.
This is easily solved with a custom transformer design, or by not needing it at all.
A 20V output is well within the range of many comparators and op-amps. Or regulators to power them. For example, a 78L05 (max input 30V) into a MAX6897, with its sense divider connected to the 20V supply.
3 - Other sources
Another question that may be of interest is, can current be drawn from the VREF pin? The answer is yes: the current rating is in the datasheet. See also TL494, etc.; many controllers provide such. This can be used not only as an accurate voltage reference, but to power logic, comparators, amps, etc., up to a total load less than the minimum limit. (One could even power a small microcontroller this way, though I would recommend avoiding pulsating loads like this, as they may feed noise into the reference supply, affecting stability or regulation.)