Headless testing for desktop application

Hello.

Is it possible for appium to run headless testing for desktop application? If so, do I need to use VM in order to do this?