Default values may be available in the DICOM file header, relevant tags are window-width (0028|1051) and window-center (0028|1050). If these are in the file header use them. If not, use the whole intensity range as the window and the center of the range as the level. In both cases allow the user to change the W/L settings.