You could probably change their appearance using the frame & titlebar (and modding it to go to a different appearance based on which of these is present). There's a variety of windows in custom UIs that change their appearance depending on whether the frame or titlebar is shown, you might want to use one of those for reference in making such a mod.
__________________
|