Simplified KGModal to just host whatever contentView in a panel with rounded corners and shadows.
Adjusted the position of X.