Yes, here is how to do it:
https://airborn.com.au/layout/vddtest.html
A 16-bit DOS application using DirectX..
In the case of OrCAD this was very easy because it already had plug-in architecture for graphics. It had this because even the mouse was not standardized in the early days.