How to dry dock a vessel with fore peak damaged?

In gravity dock by stern first, mean stern will go in first and in floating dry dock any side first. The floating dry can ballast/deballast to have same trim as vessel so that vessel rest fully.