The answer is: no.
DWG file format is licenced by Autodesk and is not compatible with open source.
There are free software libraries and reverse-engineering implementations, but you may not use them in your open-source programs.
Hope you know that "free" is not equal to "open source".